package ch.zbw.pra.sysventory.application.controller;

import java.io.Serializable;
import java.util.List;

import ch.zbw.pra.sysventory.dataaccess.dataAccessObject.PrinterDataAccessObject;
import ch.zbw.pra.sysventory.model.Printer;

/**
 * Controller für die gesammelten Printers
 * 
 * @author Ralph Koster
 */

public class PrinterController implements Serializable {
	
	private static final long serialVersionUID = -1711300958503643780L;
	
	private PrinterDataAccessObject printerDataAccessObject;
	private List<Printer> printers;

	public PrinterController() {
		this.printerDataAccessObject = new PrinterDataAccessObject();
	}

	public List<Printer> loadPrinters() {
		printers = printerDataAccessObject.getAllPrinterFromDatabase();
		return printers;
	}

}
